package cn.dada.dadarecipes.mall.cart.service;

import cn.dada.dadarecipes.mall.cart.pojo.dto.CartAddParam;
import cn.dada.dadarecipes.mall.cart.pojo.dto.CartDeleteParam;
import cn.dada.dadarecipes.mall.cart.pojo.dto.CartUpdateParam;
import cn.dada.dadarecipes.mall.cart.pojo.dto.OrderAddDTO;
import cn.dada.dadarecipes.mall.cart.pojo.vo.CartProductVO;

import java.util.List;

public interface CartService {
    List<CartProductVO> selectCart(Long userId);

    void addProducts(CartAddParam cartAddParam);

    void updateCartProducts(CartUpdateParam cartUpdateParam);

    void deleteProducts(CartDeleteParam cartDeleteParam);

    void addOrder(OrderAddDTO orderAddDTO);
}
